﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Aker.POrder
{
    public partial class Product : XForm
    {
        private int productId;
        private int type;

        public Product()
        {
            InitializeComponent();
        }

        public Product(int productId,int type)
        {            
            this.productId = productId;
            this.type = type;
            InitializeComponent();
        }

        public Product(int productId)
        {
            // TODO: Complete member initialization
            this.productId = productId;
            InitializeComponent();
        }

        private void Product_Load(object sender, EventArgs e)
        {
            if (type == 1)
            {
                txtArticle.ReadOnly = false;
                txtComp.ReadOnly = false;
                txtCompTol.ReadOnly = false;
                txtDesign.ReadOnly = false;
                txtDollar.ReadOnly = false;
                txtEuro.ReadOnly = false;
                txtWeight.ReadOnly = false;
                txtWeightTol.ReadOnly = false;
                txtWidth.ReadOnly = false;
                txtWidthTol.ReadOnly = false;
            }
            else
            { }
        }

        private void btnKaydet_Click(object sender, EventArgs e)
        {

        }

      
    }
}
